//
//  YSUtil.h
//  luGongPro
//
//  Created by 王庆学 on 2017/8/23.
//  Copyright © 2017年 王庆学. All rights reserved.
//

#import <Foundation/Foundation.h>

#define ISIPHONE3_5 CGSizeEqualToSize(CGSizeMake(320, 480), [[UIScreen mainScreen] bounds].size)
#define ISIPHONE4_0 CGSizeEqualToSize(CGSizeMake(320, 568), [[UIScreen mainScreen] bounds].size)
#define ISIPHONE4_7 CGSizeEqualToSize(CGSizeMake(375, 667), [[UIScreen mainScreen] bounds].size)
#define ISIPHONE5_5 CGSizeEqualToSize(CGSizeMake(414, 736), [[UIScreen mainScreen] bounds].size)
#define ISIPHONE9_7 CGSizeEqualToSize(CGSizeMake(768, 1024),[[UIScreen mainScreen] bounds].size)

@interface YSUtil : NSObject

+ (CGFloat)getLenght:(CGFloat)lenght;

+ (BOOL)isViewController:(id) obj;

+ (CGSize )sizeForWidth:(CGFloat )width andTextSize:(CGFloat )fontSize content:(NSString *)content defaultHeight:(CGFloat ) defaultHeight;


/** 保存普通对象 */
+ (void)setObj:(NSObject *)obj key:(NSString *)key;
+ (NSObject *)objForKey:(NSString *)key;
+ (void)removeObjForKey:(NSString *)key;

@end
